package com.treasure.service.helper;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/** 
* @ClassName    : TLogger 
* @author       : panxingwu 
* @date         : 2018年5月30日 下午11:41:21 
* @Description  : 日志打印
*/
public class TLogger {
	private Logger logger;
	public TLogger(Class clazz) {
		logger = LoggerFactory.getLogger(clazz);
	}
	public TLogger(String loggerName) {
		logger = LoggerFactory.getLogger(loggerName);
	}
	public void info(String format,Object...objects) {
		logger.info(format.format(format, objects));
	}
	
	public void debug(String format,Object...objects) {
		logger.debug(format.format(format, objects));
	}
	
	public void error(String format,Throwable throwable) {
		logger.error(format, throwable);
	}
	
	public void warn(String format,Object...objects) {
		logger.warn(format.format(format, objects));
	}
}
